<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
	<meta http-equiv="X-UA-Compatable" content="IE=edge,Chrome=1.0">
	<meta name="format-detection" content="telephone=no">
	<meta name="format-detection" content="email=no">   
	<title>11周年G4玩出彩</title>
	
	<link rel="stylesheet/less" href="{$_C.hy_path}css/pic.css">
	<link rel="stylesheet/less" type="text/css" href="{$_C.hy_path}css/normalize.css">
</head>
<body>
	<div class="wrapper">
		<div class="rule">
			<img src="{$_C.hy_path}images/picture/rule.png" alt="">
		</div>
		<a href="index.php?g=mobile&m=picture&a=period"><img class="shakeScale" src="{$_C.hy_path}images/picture/enter1.png" alt=""></a>
	</div>
	<script type="text/javascript" src="{$_C.hy_path}js/less.min.js"></script>
	<script type="text/javascript" src="{$_C.hy_path}js/zepto.min.js"></script>
	<script type="text/javascript" src="{$_C.hy_path}js/picture.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		
		
<script>
		 
		
		  wx.config({
		    debug: true, 
		   appId: '{$jsdk.appId}',
				timestamp: {$jsdk.timestamp},
				nonceStr: '{$jsdk.nonceStr}',
				signature: '{$jsdk.signature}',
		    jsApiList: [
		      // 所有要调用的 API 都要加到这个列表中
		      'addCard',
		      'chooseCard'
		    ]
		  });
		
		  
		  wx.ready(function () {
			  
		  /* 
		  wx.chooseCard({
			    shopId: '', // 门店Id
			    cardType: '', // 卡券类型
			    cardId: '', // 卡券Id
			    timestamp: {$jsdk_card.timestamp}, // 卡券签名时间戳
			    nonceStr: '{$jsdk_card.nonceStr}', // 卡券签名随机串
			    signType: 'SHA1', // 签名方式，默认'SHA1'
			    cardSign: '{$jsdk_card.signature}', // 卡券签名
			    success: function (res) {
			        var cardList= res.cardList; // 用户选中的卡券列表信息
			    }
			});
		   */
		  
	 	  wx.addCard({
              cardList: [
                {
                  cardId: "pmE3vjucVFmtubzNr2Y4M54HdPwM",
                  cardExt: "{$jsdk_card.cardSignature}"
                }
              ],
              success: function (res) {
                alert('已添加卡券：');
              }
            });
 	  
		  });
			
		</script>
</body>
</html>